home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 1.toast / pc / utilities / hypercard player / hypercard player 2.4 / audio help / background_7507.xml < prev    next >
Encoding:
Extensible Markup Language  |  1997-04-23  |  19.9 KB  |  406 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>7507</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3785.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3279.css" />
  11.     <part>
  12.         <id>69</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <true /> </dontWrap>
  16.         <dontSearch> <true /> </dontSearch>
  17.         <sharedText> <true /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>17</left>
  23.             <top>30</top>
  24.             <right>189</right>
  25.             <bottom>124</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Palatino</font>
  37.         <textSize>14</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>18</textHeight>
  40.         <name>Main Topics</name>
  41.         <script>on mouseUp
  42. select empty
  43. set cursor to watch
  44. lock screen
  45. if line (word 2 of the clickLine) of me is empty then
  46. resetMainTopicsCard
  47. exit mouseUp
  48. end if
  49. put word 2 of the clickLine into topicNumber
  50. go card topicNumber
  51. showRightList false
  52. hiliteTopic topicNumber
  53. unlock screen
  54. lock screen
  55. showRightList true
  56. unlock screen with visual effect wipe down fast
  57. if the mouse is down then exit mouseUp -- trap double click
  58. end mouseUp</script>
  59.     </part>
  60.     <part>
  61.         <id>74</id>
  62.         <type>field</type>
  63.         <visible> <true /> </visible>
  64.         <dontWrap> <false /> </dontWrap>
  65.         <dontSearch> <false /> </dontSearch>
  66.         <sharedText> <true /> </sharedText>
  67.         <fixedLineHeight> <false /> </fixedLineHeight>
  68.         <autoTab> <false /> </autoTab>
  69.         <lockText> <true /> </lockText>
  70.         <rect>
  71.             <left>18</left>
  72.             <top>8</top>
  73.             <right>256</right>
  74.             <bottom>31</bottom>
  75.         </rect>
  76.         <style>transparent</style>
  77.         <autoSelect> <false /> </autoSelect>
  78.         <showLines> <false /> </showLines>
  79.         <wideMargins> <false /> </wideMargins>
  80.         <multipleLines> <false /> </multipleLines>
  81.         <reservedFamily> 0 </reservedFamily>
  82.         <titleWidth>0</titleWidth>
  83.         <icon>0</icon>
  84.         <textAlign>left</textAlign>
  85.         <font>Helvetica</font>
  86.         <textSize>18</textSize>
  87.         <textStyle>plain</textStyle>
  88.         <textHeight>24</textHeight>
  89.         <name>Title</name>
  90.         <script></script>
  91.     </part>
  92.     <part>
  93.         <id>78</id>
  94.         <type>button</type>
  95.         <visible> <false /> </visible>
  96.         <reserved5> 0 </reserved5>
  97.         <reserved4> 0 </reserved4>
  98.         <reserved3> 0 </reserved3>
  99.         <reserved2> 0 </reserved2>
  100.         <reserved1> 0 </reserved1>
  101.         <enabled> <true /> </enabled>
  102.         <rect>
  103.             <left>7</left>
  104.             <top>104</top>
  105.             <right>177</right>
  106.             <bottom>122</bottom>
  107.         </rect>
  108.         <style>transparent</style>
  109.         <showName> <false /> </showName>
  110.         <highlight> <true /> </highlight>
  111.         <autoHighlight> <false /> </autoHighlight>
  112.         <sharedHighlight> <true /> </sharedHighlight>
  113.         <family>0</family>
  114.         <titleWidth>0</titleWidth>
  115.         <icon>0</icon>
  116.         <textAlign>left</textAlign>
  117.         <font>Palatino</font>
  118.         <textSize>14</textSize>
  119.         <textStyle>plain</textStyle>
  120.         <name>Hiliter</name>
  121.         <script>on mouseUp
  122. pass mouseUp
  123. end mouseUp</script>
  124.     </part>
  125.     <part>
  126.         <id>80</id>
  127.         <type>field</type>
  128.         <visible> <false /> </visible>
  129.         <dontWrap> <true /> </dontWrap>
  130.         <dontSearch> <false /> </dontSearch>
  131.         <sharedText> <false /> </sharedText>
  132.         <fixedLineHeight> <true /> </fixedLineHeight>
  133.         <autoTab> <false /> </autoTab>
  134.         <lockText> <true /> </lockText>
  135.         <rect>
  136.             <left>27</left>
  137.             <top>146</top>
  138.             <right>250</right>
  139.             <bottom>259</bottom>
  140.         </rect>
  141.         <style>transparent</style>
  142.         <autoSelect> <false /> </autoSelect>
  143.         <showLines> <false /> </showLines>
  144.         <wideMargins> <true /> </wideMargins>
  145.         <multipleLines> <false /> </multipleLines>
  146.         <reservedFamily> 0 </reservedFamily>
  147.         <titleWidth>0</titleWidth>
  148.         <icon>0</icon>
  149.         <textAlign>left</textAlign>
  150.         <font>Palatino</font>
  151.         <textSize>12</textSize>
  152.         <textStyle>plain</textStyle>
  153.         <textHeight>15</textHeight>
  154.         <name>Section</name>
  155.         <script>-- ‚àÜ The maximum number of lines that a subtopic can use is two.
  156. -- To continue the name of a subtopic onto the next line,
  157. -- simply put a tab character into the first character of the second
  158. -- line. This script looks for that tab character and adjusts
  159. -- accordingly.
  160.  
  161. on mouseUp
  162. -- Go to the section clicked on.
  163. visual effect zoom out
  164. put word 2 of the clickLine into startLine
  165. if tab is in line startLine of me then
  166. -- The previous line is a continuation of the line clicked.
  167. put startLine into nextLine
  168. subtract 1 from startLine
  169. else
  170. if tab is in line (startLine + 1) of me then
  171. -- The next line is a continuation of the line clicked.
  172. put (startLine + 1) into nextLine
  173. else
  174. -- The line clicked is a complete section name.
  175. put empty into nextLine
  176. end if
  177. end if
  178. selectWholeLine startLine,the name of me,nextLine
  179. wait 5
  180. put getSectionName(line startLine of me) into cardName
  181. goCard cardName
  182. end mouseUp
  183.  
  184. function getSectionName whichSection
  185. get number of words in whichSection
  186. put word 2 to it of whichSection into whichSection
  187. if last char of whichSection is return then
  188. delete last char of whichSection
  189. end if
  190. return whichSection
  191. end getSectionName</script>
  192.     </part>
  193.     <part>
  194.         <id>85</id>
  195.         <type>button</type>
  196.         <visible> <true /> </visible>
  197.         <reserved5> 0 </reserved5>
  198.         <reserved4> 0 </reserved4>
  199.         <reserved3> 0 </reserved3>
  200.         <reserved2> 0 </reserved2>
  201.         <reserved1> 0 </reserved1>
  202.         <enabled> <true /> </enabled>
  203.         <rect>
  204.             <left>91</left>
  205.             <top>269</top>
  206.             <right>170</right>
  207.             <bottom>288</bottom>
  208.         </rect>
  209.         <style>rectangle</style>
  210.         <showName> <true /> </showName>
  211.         <highlight> <false /> </highlight>
  212.         <autoHighlight> <true /> </autoHighlight>
  213.         <sharedHighlight> <true /> </sharedHighlight>
  214.         <family>0</family>
  215.         <titleWidth>0</titleWidth>
  216.         <icon>0</icon>
  217.         <textAlign>center</textAlign>
  218.         <font>Palatino</font>
  219.         <textSize>12</textSize>
  220.         <textStyle>plain</textStyle>
  221.         <name>Quick View</name>
  222.         <script>on mouseUp
  223. visual effect wipe up fast
  224. goBalloons
  225. end mouseUp</script>
  226.     </part>
  227.     <part>
  228.         <id>86</id>
  229.         <type>button</type>
  230.         <visible> <true /> </visible>
  231.         <reserved5> 0 </reserved5>
  232.         <reserved4> 0 </reserved4>
  233.         <reserved3> 0 </reserved3>
  234.         <reserved2> 0 </reserved2>
  235.         <reserved1> 0 </reserved1>
  236.         <enabled> <true /> </enabled>
  237.         <rect>
  238.             <left>172</left>
  239.             <top>269</top>
  240.             <right>243</right>
  241.             <bottom>288</bottom>
  242.         </rect>
  243.         <style>rectangle</style>
  244.         <showName> <true /> </showName>
  245.         <highlight> <false /> </highlight>
  246.         <autoHighlight> <true /> </autoHighlight>
  247.         <sharedHighlight> <true /> </sharedHighlight>
  248.         <family>0</family>
  249.         <titleWidth>0</titleWidth>
  250.         <icon>0</icon>
  251.         <textAlign>center</textAlign>
  252.         <font>Palatino</font>
  253.         <textSize>12</textSize>
  254.         <textStyle>plain</textStyle>
  255.         <name>Overview</name>
  256.         <script>on mouseUp
  257. visual effect wipe up fast
  258. goOverview
  259. end mouseUp</script>
  260.     </part>
  261.     <part>
  262.         <id>88</id>
  263.         <type>button</type>
  264.         <visible> <true /> </visible>
  265.         <reserved5> 0 </reserved5>
  266.         <reserved4> 0 </reserved4>
  267.         <reserved3> 0 </reserved3>
  268.         <reserved2> 0 </reserved2>
  269.         <reserved1> 0 </reserved1>
  270.         <enabled> <true /> </enabled>
  271.         <rect>
  272.             <left>13</left>
  273.             <top>269</top>
  274.             <right>89</right>
  275.             <bottom>288</bottom>
  276.         </rect>
  277.         <style>rectangle</style>
  278.         <showName> <true /> </showName>
  279.         <highlight> <false /> </highlight>
  280.         <autoHighlight> <true /> </autoHighlight>
  281.         <sharedHighlight> <true /> </sharedHighlight>
  282.         <family>0</family>
  283.         <titleWidth>0</titleWidth>
  284.         <icon>0</icon>
  285.         <textAlign>center</textAlign>
  286.         <font>Palatino</font>
  287.         <textSize>12</textSize>
  288.         <textStyle>plain</textStyle>
  289.         <name>Leave Help</name>
  290.         <script>on mouseUp
  291. leaveHelp
  292. end mouseUp</script>
  293.     </part>
  294.     <part>
  295.         <id>79</id>
  296.         <type>field</type>
  297.         <visible> <false /> </visible>
  298.         <dontWrap> <false /> </dontWrap>
  299.         <dontSearch> <false /> </dontSearch>
  300.         <sharedText> <true /> </sharedText>
  301.         <fixedLineHeight> <false /> </fixedLineHeight>
  302.         <autoTab> <false /> </autoTab>
  303.         <lockText> <true /> </lockText>
  304.         <rect>
  305.             <left>27</left>
  306.             <top>129</top>
  307.             <right>250</right>
  308.             <bottom>149</bottom>
  309.         </rect>
  310.         <style>transparent</style>
  311.         <autoSelect> <false /> </autoSelect>
  312.         <showLines> <false /> </showLines>
  313.         <wideMargins> <true /> </wideMargins>
  314.         <multipleLines> <false /> </multipleLines>
  315.         <reservedFamily> 0 </reservedFamily>
  316.         <titleWidth>0</titleWidth>
  317.         <icon>0</icon>
  318.         <textAlign>left</textAlign>
  319.         <font>Geneva</font>
  320.         <textSize>10</textSize>
  321.         <textStyle>plain</textStyle>
  322.         <textHeight>13</textHeight>
  323.         <name>Instruction 2</name>
  324.         <script>on mouseUp
  325. beep
  326. end mouseUp</script>
  327.     </part>
  328.     <part>
  329.         <id>89</id>
  330.         <type>button</type>
  331.         <visible> <true /> </visible>
  332.         <reserved5> 0 </reserved5>
  333.         <reserved4> 0 </reserved4>
  334.         <reserved3> 0 </reserved3>
  335.         <reserved2> 0 </reserved2>
  336.         <reserved1> 0 </reserved1>
  337.         <enabled> <true /> </enabled>
  338.         <rect>
  339.             <left>0</left>
  340.             <top>125</top>
  341.             <right>256</right>
  342.             <bottom>259</bottom>
  343.         </rect>
  344.         <style>opaque</style>
  345.         <showName> <false /> </showName>
  346.         <highlight> <false /> </highlight>
  347.         <autoHighlight> <false /> </autoHighlight>
  348.         <sharedHighlight> <true /> </sharedHighlight>
  349.         <family>0</family>
  350.         <titleWidth>0</titleWidth>
  351.         <icon>0</icon>
  352.         <textAlign>center</textAlign>
  353.         <font>Chicago</font>
  354.         <textSize>12</textSize>
  355.         <textStyle>plain</textStyle>
  356.         <name>Section Cover</name>
  357.         <script></script>
  358.     </part>
  359.     <part>
  360.         <id>90</id>
  361.         <type>field</type>
  362.         <visible> <false /> </visible>
  363.         <dontWrap> <false /> </dontWrap>
  364.         <dontSearch> <false /> </dontSearch>
  365.         <sharedText> <false /> </sharedText>
  366.         <fixedLineHeight> <false /> </fixedLineHeight>
  367.         <autoTab> <false /> </autoTab>
  368.         <lockText> <true /> </lockText>
  369.         <rect>
  370.             <left>41</left>
  371.             <top>239</top>
  372.             <right>219</right>
  373.             <bottom>260</bottom>
  374.         </rect>
  375.         <style>rectangle</style>
  376.         <autoSelect> <false /> </autoSelect>
  377.         <showLines> <false /> </showLines>
  378.         <wideMargins> <false /> </wideMargins>
  379.         <multipleLines> <false /> </multipleLines>
  380.         <reservedFamily> 0 </reservedFamily>
  381.         <titleWidth>0</titleWidth>
  382.         <icon>0</icon>
  383.         <textAlign>left</textAlign>
  384.         <font>Geneva</font>
  385.         <textSize>12</textSize>
  386.         <textStyle>plain</textStyle>
  387.         <textHeight>16</textHeight>
  388.         <name>LastDate</name>
  389.         <script></script>
  390.     </part>
  391.     <part>
  392.         <id>93</id>
  393.         <type>button</type>
  394.         <visible> <false /> </visible>
  395.         <reserved5> 0 </reserved5>
  396.         <reserved4> 0 </reserved4>
  397.         <reserved3> 0 </reserved3>
  398.         <reserved2> 0 </reserved2>
  399.         <reserved1> 0 </reserved1>
  400.         <enabled> <true /> </enabled>
  401.         <rect>
  402.             <left>12</left>
  403.             <top>127</top>
  404.             <right>132</right>
  405.             <bottom>149</bottom>
  406.         </rect>
  407.         <style>roundrect</style>
  408.         <showName> <true /> </showName>
  409.         <highlight> <false /> </highlight>
  410.         <autoHighlight> <true /> </autoHighlight>
  411.         <sharedHighlight> <true /> </sharedHighlight>
  412.         <family>0</family>
  413.         <titleWidth>0</titleWidth>
  414.         <icon>0</icon>
  415.         <textAlign>center</textAlign>
  416.         <font>Chicago</font>
  417.         <textSize>12</textSize>
  418.         <textStyle>plain</textStyle>
  419.         <name>ProtoNormalBtn</name>
  420.         <script>on mouseUp
  421. put putSoundNameHere into theSoundName --we stick the actual sound name into "putSoundNameHere"
  422. if the CommandKey is "down" then
  423. answer "Are you sure you want to delete" && quote & theSoundName & quote & "?"¬¨ --‚àÜ
  424. with "No" or "Yes"  --‚àÜ
  425. if it is "Yes" then --‚àÜ
  426. set cursor to watch
  427. deleteMe
  428. exit mouseUp
  429. end if
  430. set the hilite of me to false
  431. else
  432. if ":Audio Help" & return is in the stacksInUse & return then --‚àÜ
  433. if not SndExists(theSoundName) then
  434. answer "The sound associated with this button has been deleted."&&¬¨ --‚àÜ
  435. " Would you like to delete the button as well?"¬¨ --‚àÜ
  436. with "No" or "Yes" --‚àÜ
  437. if it is "Yes" then deleteMe --‚àÜ
  438. set the hilite of me to false
  439. exit mouseUp
  440. end if
  441. end if
  442. play theSoundName
  443. if the sound is not theSoundName then
  444. answer "Sound" && quote & theSoundName & quote && "cannot be played." --‚àÜ
  445. set the hilite of me to false
  446. exit mouseUp
  447. end if
  448. set the hilite of me to true
  449. repeat until the sound is done
  450. if the mouse is down then play stop
  451. end repeat
  452. set the hilite of me to false
  453. end if
  454. end mouseUp
  455.  
  456. on mouseDown
  457. if the OptionKey is down then
  458. repeat until the mouse is up
  459. set the loc of me to the mouseloc
  460. end repeat
  461. get the rect of this card
  462. if the loc of me is not within it then
  463. put the height of this card div 2 into vert
  464. put the width of this card div 2 into hor
  465. set the loc of me to hor,vert
  466. end if
  467. exit to hypercard
  468. else
  469. put false into OldState
  470. put true into NewState -- in case the click was really fast
  471. set the hilite of me to true
  472. repeat until the mouse is up
  473. put the mouseLoc is within the rect of me into NewState
  474. if NewState ‚↠OldState then
  475. set the hilite of me to NewState
  476. put NewState into OldState
  477. end if
  478. end repeat
  479. if not NewState then
  480. set hilite of me to false
  481. exit to hypercard
  482. end if
  483. end if
  484. end mouseDown
  485.  
  486. on deleteMe
  487. global APHasEdit,APHasWaveEdit
  488. put the short name of me into btnName
  489. put the long name of this stack into stakName
  490. delete the first word of btnName
  491. delete the first word of stakName
  492. delete the first char of stakName
  493. delete the last char of stakName
  494. lock screen
  495. if APHasEdit is true then
  496. if APHasWaveEdit is true then put "Clear" into menuItem 6 of menu 3  --‚àÜ
  497. send "tempGiveUpEdit" to window "AudioPalette"
  498. end if
  499. get the userlevel
  500. set the userlevel to 5
  501. select me
  502. send "doMenu Clear Button" to HyperCard
  503. choose browse tool
  504. set the userlevel to it
  505. if APHasEdit is true then
  506. if APHasWaveEdit is true then put "Clear Sound" into menuitem 6 of menu 3  --‚àÜ
  507. send "tempTakeBackEdit" to window "AudioPalette"
  508. end if
  509. unlock screen
  510. if ":Audio Help" & return is in the stacksInUse & return --‚àÜ
  511. then deleteSnd stakName, btnName
  512. if there is a window "AudioPalette" then send "update" to window "AudioPalette"
  513. end deleteMe
  514. </script>
  515.     </part>
  516.     <part>
  517.         <id>94</id>
  518.         <type>button</type>
  519.         <visible> <false /> </visible>
  520.         <reserved5> 0 </reserved5>
  521.         <reserved4> 0 </reserved4>
  522.         <reserved3> 0 </reserved3>
  523.         <reserved2> 0 </reserved2>
  524.         <reserved1> 0 </reserved1>
  525.         <enabled> <true /> </enabled>
  526.         <rect>
  527.             <left>13</left>
  528.             <top>164</top>
  529.             <right>33</right>
  530.             <bottom>181</bottom>
  531.         </rect>
  532.         <style>opaque</style>
  533.         <showName> <false /> </showName>
  534.         <highlight> <false /> </highlight>
  535.         <autoHighlight> <true /> </autoHighlight>
  536.         <sharedHighlight> <true /> </sharedHighlight>
  537.         <family>0</family>
  538.         <titleWidth>0</titleWidth>
  539.         <icon>29183</icon>
  540.         <textAlign>center</textAlign>
  541.         <font>Chicago</font>
  542.         <textSize>12</textSize>
  543.         <textStyle>plain</textStyle>
  544.         <name>ProtoApptBtn</name>
  545.         <script>on mouseup
  546. put (":Audio Help" & return) is in (the stacksInUse & return) into InRealm  --‚àÜ
  547. put putSoundNameHere into theSoundName --I stick the actual sound name into "putSoundNameHere"
  548. if the CommandKey is down then
  549. answer "Are you sure you want to delete" ¬¨
  550. && quote & theSoundName & quote & "?" with "No" or "Yes" --‚àÜ
  551. if it is "Yes" then --‚àÜ
  552. set cursor to watch
  553. deleteMe
  554. resetAPMenus
  555. end if
  556. else
  557. if InRealm then
  558. if not SndExists(theSoundName) then
  559. answer "The sound associated with this button has been deleted."&&¬¨ --‚àÜ
  560. " Would you like to delete the button as well?"¬¨ --‚àÜ
  561. with "No" or "Yes" --‚àÜ
  562. if it is "Yes" then --‚àÜ
  563. set cursor to watch
  564. deleteMe
  565. end if
  566. UpdateAnnoteMenus
  567. exit mouseUp
  568. end if
  569. end if
  570. play stop
  571. play theSoundName
  572. if the sound is not theSoundName then
  573. answer "Sound" && quote & theSoundName & quote && "cannot be played." --‚àÜ
  574. end if
  575. end if
  576. if InRealm then UpdateAnnoteMenus
  577. end mouseup
  578.  
  579. on mousedown
  580. put (":Audio Help" & return) is in (the stacksInUse & return) into InRealm --‚àÜ
  581. put the number of me into mynum
  582. if the ShiftKey is down then
  583. set the hilite of me to not the hilite of me
  584. if InRealm then UpdateAnnoteMenus
  585. exit to hypercard
  586. else
  587. set the hilite of me to true
  588. get number of btns
  589. if InRealm then
  590. repeat with i = 1 to it
  591. if not IsSoundButton(i) then next repeat
  592. if i ‚↠myNum then set the hilite of btn i to false
  593. end repeat
  594. end if
  595. end if
  596. if the optionKey is down then
  597. repeat until the mouse is up
  598. set the loc of me to the mouseloc
  599. end repeat
  600. get the rect of this card
  601. if the loc of me is not within it then
  602. put the height of this card div 2 into vert
  603. put the width of this card div 2 into hor
  604. set the loc of me to hor,vert
  605. end if
  606. if InRealm then UpdateAnnoteMenus
  607. exit to hypercard
  608. end if
  609. end mousedown
  610.  
  611. on deleteMe IncludeSound
  612. global APHasEdit,APHasWaveEdit
  613. put line 1 of the short name of me into butName
  614. put the long name of this stack into stakName
  615. delete the first word of stakName
  616. delete the first char of stakName
  617. delete the last char of stakName
  618. lock screen
  619. if APHasEdit is true then
  620. if APHasWaveEdit is true then put "Clear" into menuItem 6 of menu 3  --‚àÜ
  621. send "tempGiveUpEdit" to window "AudioPalette"
  622. end if
  623. get the userlevel
  624. set the userlevel to 5
  625. select me
  626. send "doMenu Clear Button" to HyperCard
  627. choose browse tool
  628. set the userlevel to it
  629. if APHasEdit is true then
  630. if APHasWaveEdit is true then put "Clear Sound" into menuitem 6 of menu 3  --‚àÜ
  631. send "tempTakeBackEdit" to window "AudioPalette"
  632. end if
  633. unlock screen
  634. if IncludeSound ‚↠"noSound" then deleteSnd stakName, butName
  635. if there is a window "AudioPalette"
  636. then send "update" to window "AudioPalette"
  637. end deleteMe
  638. </script>
  639.     </part>
  640.     <content>
  641.         <layer>background</layer>
  642.         <id>69</id>
  643.         <text>Audio Palette Basics
  644. About Sound
  645. Using Sound in Stacks
  646. Editing Sound
  647. Recording Features</text>
  648.     </content>
  649.     <content>
  650.         <layer>background</layer>
  651.         <id>74</id>
  652.         <text>Main Topics for Audio Help</text>
  653.     </content>
  654.     <content>
  655.         <layer>background</layer>
  656.         <id>79</id>
  657.         <text>Click a subtopic to go to it:</text>
  658.     </content>
  659.     <name>Main Topics</name>
  660.     <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
  661. Script from background: Main Topics
  662.  
  663. THE MESSAGE HANDLERS IN THIS SCRIPT:
  664. resumeStack,openBackground,closeBackground,openCard,mouseUp,
  665. showLeaveButton,setCheckMark,resetMainTopicsCard,showRightList,
  666. hiliteTopic
  667.  
  668. THE FUNCTION HANDLERS IN THIS SCRIPT:
  669. <none>
  670.  
  671. ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
  672.  
  673. ----------‚Ä¢‚Ä¢ SYSTEM MESSAGES ‚Ä¢‚Ä¢---------
  674.  
  675. on resumeStack
  676. showLeaveButton
  677. pass resumeStack
  678. end resumeStack
  679.  
  680. on openBackground
  681. setCheckMark true
  682. showLeaveButton
  683. pass openBackground
  684. end openBackground
  685.  
  686. on closeBackground
  687. setCheckMark false
  688. pass closeBackground
  689. end closeBackground
  690.  
  691. on openCard
  692. hiliteTopic (the number of this card)
  693. showRightList true
  694. pass openCard
  695. end openCard
  696.  
  697. on mouseUp
  698. resetMainTopicsCard
  699. end mouseUp
  700.  
  701. ----------‚Ä¢‚Ä¢ MESSAGE HANDLERS ‚Ä¢‚Ä¢----------
  702.  
  703. on showLeaveButton
  704. -- Show the button "Leave Help" if the user only has one stack window
  705. -- open; otherwise hide it.
  706. get (number of lines in the stacks is 1)
  707. -- ‚àÜ Localize: the name of this button.
  708. set the visible of bkgnd button "Leave Help" to it
  709. end showLeaveButton
  710.  
  711. on setCheckMark boolean
  712. -- Set the menu bar for this background.
  713. setLocationCheckMark 1,boolean
  714. end setCheckMark
  715.  
  716. on resetMainTopicsCard
  717. -- Hide all objects pertaining to the right-hand list.
  718. lock screen
  719. go card 1
  720. showRightList false
  721. unlock screen with visual effect wipe up fast
  722. end resetMainTopicsCard
  723.  
  724. on showRightList boolean
  725. -- Show or hide all objects for the right-hand list
  726. set the showPict of this card to boolean
  727. set visible of bkgnd button "Hiliter" to boolean
  728. set visible of bkgnd field "Instruction 2" to boolean
  729. set visible of bkgnd field "Section" to boolean
  730. set visible of bkgnd button "Section Cover" to not boolean
  731. end showRightList
  732.  
  733. on hiliteTopic topicNumber
  734. -- Show and move the Hiliter button.
  735. -- topicNumber is an integer, the number of the line in the Main Topics
  736. -- to be highlighted.
  737. put "Main Topics" into whichField
  738. get (top of bkgnd field whichField + (topicNumber * ¬¨
  739. the textHeight of bkgnd field whichField) + 2)
  740. set the bottom of bkgnd button "Hiliter" to it
  741. show bkgnd button "Hiliter"
  742. end hiliteTopic</script>
  743. </background>
  744.